export interface User {
  id: number
  username: string
  nickname: string
  score: number
  createdAt: string
  lastLogin: string
}

export interface LoginRequest {
  username: string
  password: string
}

export interface RegisterRequest extends LoginRequest {
  nickname: string
}

export interface AuthResponse {
  token: string
  user: User
}

export interface UserInfo {
  id: number
  username: string
  nickname: string
  avatar?: string
  balance: number
  score?: number
  createdAt: string
  updatedAt: string
}

export interface Result<T> {
  code: number
  message: string
  data: T
} 